<div class="center">
    <div class="home">
        <div class="home_left"><?php //var_dump($this->account);exit;?>
            <?php echo $this->partial('member/menu.phtml', array('menuId' => $this->menuId, 'user' => $this->user, 'uCount' => $this->uCount, 'account' => $this->account)); ?>
        </div>
        <div class="home_right">

            <div class="home_top">
                <h1>您好，<?php echo $this->user->Nikename ?>，<?php if ($this->user->lastLogin) echo '欢迎您回来！';else echo '欢迎您进入悠奇网！'; ?></h1>
            </div>
            <div class="PersonalData">
                <div class="PD_geren">
                    <div class="dengji">
                        <label>会员等级：</label>
                        <span><a href="/vipuser/index"><i class="<?php echo $this->account->UserGrade>2?"user".$this->account->UserGrade:"user1";?>"></i>
                            <?php echo $this->account->UserGradeName; ?>会员</a></span>
                    </div>
                    <div class="jifen" style="width: 200px;float: left;margin-top: 10px;">
                        <label>积分：</label>
                        <span><?php echo $this->account->Score."&nbsp;/&nbsp;".$this->account->NextGradeScore;?></span>
                    </div>
                    <ul>
                        <li><a href="/member/profile"><i class="PD1"></i>个人资料</a></li>
                        <li><a href="/member/storehome"><i class="PD2"></i>我的收货地址</a></li>
                    </ul>
                </div>        
                <div class="PD_left">
                    <div class="pdckinfo">
                        <div class="ckinfo">
                            <label>我的云仓库：</label><em><a href="/member/mystore"><?php echo $this->uCount['store'] ?></a></em><p>件</p>
                        </div>
                        <div class="pdcaozuo">
                            <a class="pdenter" href="/member/mystore"><span>进入仓库</span></a>
                            <a class="pdyubao" href="/member/instore"><span>预报入库</span></a>
                        </div>
                    </div>
                    <div class="tequan">
                        <h3>我的特权：</h3>
                        <ul>
                            <li><a href="http://help.uuch.com/?p=167" target="_blank"><i class="tq1"></i>免费仓库</a></li>
                            <li><a href="http://help.uuch.com/?p=169" target="_blank"><i class="tq2"></i>免费验货</a></li>
                            <li><a href="http://help.uuch.com/?p=171" target="_blank"><i class="tq3"></i>金牌客服</a></li>
                        </ul>
                    </div>
                </div>
                <div class="PD_right">
                    <h3>其他个人信息</h3>
                    <ul>
                        <li class="xinxi"><i class="qt1"></i>我的消息：<a href="/member/mail"><?php echo $this->mailCount ?>条未读信息</a></li>
                        <li><i class="qt2"></i>人民币帐户：￥<?php echo number_format($this->user->Account->Money, 2) ?><a href="/member/recharge">[在线充值]</a></li>
                    </ul>
                </div>
            </div>
            <div class="promptmessage">
                <h3>我的交易提醒：</h3>
                <ul>
                    <li><div class="ts"><a href="/member/instore">预报列表<span>(<?php echo $this->uCount["ingstore"]; ?>)</span></a></div></li>
                    <li><div class="ts"><a href="/member/waybill">我的国际运单<span>(<?php echo $this->payWaybill ?>)</span></a></div></li>
                </ul>

            </div>
            <div class="CKAddress">
                <div class="lm_top">
                    <h2>我的仓库地址</h2>
                    <a href="http://help.uuch.com/?p=66" target="_blank">查看如何正确使用仓库地址<span></span></a>
                </div>
                <div class="CK_box">
                    <table>
                        <tr>
                            <td class="ckl">联系人(Name)：</td>
                            <td><?php echo $this->user->Nikename ? $this->user->Nikename : '悠奇' ?><i><em>重要</em></i></td>
                        </tr>
                        <tr>
                            <td class="ckl">省(State)：</td>
                            <td>广东</td>
                        </tr>
                        <tr>
                            <td class="ckl">城市(City)：</td>
                            <td>深圳市</td>
                        </tr>
                        <tr>
                            <td class="ckl">地址(Address)：</td>
                            <td>南山区朗山二号路3号悠奇仓库<span><?php echo $this->user->storeno; ?></span>号<i><em>重要</em></i></td>
                        </tr>
                        <tr>
                            <td class="ckl">邮编(Zip Code)：</td>
                            <td>518049</td>
                        </tr>
                        <tr>
                            <td class="ckl">电话(Tel)：</td>
                            <td>0755 - 88605979</td>
                        </tr>
                    </table>
                </div>
            </div>

            <div class="FAQask">
                <div class="lm_top">
                    <h2>常见问题</h2>
                    <a href="http://help.uuch.com" target="_blank">更多<span></span></a>
                </div>
                <div class="ask_list">
                    <ul>
                        <li><a href="http://help.uuch.com/?p=58" target="_blank">什么是云仓库？</a></li>
                        <li><a href="http://help.uuch.com/?p=60"  target="_blank">什么情况下会用到云仓库？</a></li>
                        <li><a href="http://help.uuch.com/?p=62"  target="_blank">如何使用云仓库进行自助购?</a></li>
                        <li><a href="http://help.uuch.com/?p=85"  target="_blank">云仓库与普通仓库有什么区别?</a></li>
                        <li><a href="http://help.uuch.com/?p=64"  target="_blank">你们有哪些物品是禁寄的？</a></li>
                    </ul>
                </div>
            </div>





        </div>
    </div>
</div>
<script type="text/javascript" src="/js/boxy/js/jquery.boxy.js"></script>
<link href="/js/boxy/css/boxy.css" media="screen" rel="stylesheet" type="text/css" >  
<?php if($this->account->UserGrade>$this->account->GradePrivilege){ ?>
<div class="tanchuang" style="display:none;height: 300px;">
    <div class="nui-msgbox">
        <div class="nui-msgbox-hd" style="font-size: 16px;">系统消息</div>
        <a class="nui-msgbox-close" title="关闭"><b></b></a>
    </div>
    <div class="wenti_box" style="display:none;">
        <div style="margin-left: 20px;font-size: 16px;margin-top: 20px;width: 560px;">
            <h3>尊敬的<?php echo $this->account->UserGradeName; ?>：</h3>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;恭喜您，您的<?php echo $this->account->UserGradeName; ?>等级奖励领取成功。您将获得以下奖励：</p>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1、获取<span class="GradeReward"></span>。</p>
            <p style="margin-top: 20px;margin-left: 150px;"><a href="javascript:void(0)" class="exitproblem" ><span class="countdown">20</span>秒后自动关闭，立即关闭。</a></p>
        </div>
    </div>
    <div class="wenti_box2" style="display:none;">
        <div style="margin-left: 20px;font-size: 16px;margin-top: 20px;width: 560px;">
            <h3>尊敬的<?php echo $this->account->UserGradeName; ?>：</h3>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;对不起，您的等级奖励领取失败。可能造成的原因如下：</p>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1、可能是您已经领取过了，不能重复领取。</p>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2、可能是您的积分不足，无法领取。</p>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3、可能是您的登录出现问题，请登出刷新重新登录一次。</p>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如需不行，请联系在线客服</p>
            <p style="margin-top: 20px;margin-left: 150px;"><a href="javascript:void(0)" class="exitproblem" ><span class="countdown">20</span>秒后自动关闭，点击立即关闭。</a></p>
        </div>
    </div>
</div>
<div class="houtai_overlay" style="display:none;"></div>
<script>
    var leftSeconds = 20;
    $("#receiveGrade").live("click",function(){
        $.post('/member/receivegrade', {}, function(date){
            if(date.type == 1){
                $("div.wenti_box").show();
                $("div.wenti_box2").hide();
                $("span.GradeReward").html(date.reward);
            } else {
                $("div.wenti_box").hide();
                $("div.wenti_box2").show();
            }          
        }, 'json');   
        $("div.houtai_overlay").show();
        $("div.tanchuang").show();
        setInterval("CountDown()", 1000);
    });
    $(".nui-msgbox-close").click(function(){
        $("div.houtai_overlay").hide();
        $("div.tanchuang").hide();
        location.href="/member/home";
    });
    $(".exitproblem").click(function(){
        $("div.houtai_overlay").hide();
        $("div.tanchuang").hide();
        location.href="/member/home";
    }); 
    function CountDown() {
        if(leftSeconds<=0){
            leftSeconds = 10;
            $(".exitproblem").click();
        }
        leftSeconds--;
        $(".countdown").html(leftSeconds);
    }
</script>
<?php } ?>